"use strict";

function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }

var calc = _interopRequireWildcard(require("./app"));

var mes = _interopRequireWildcard(require("./mes"));

var _say = _interopRequireDefault(require("./say"));

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }

function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

// 入口文件
console.log('统一暴露', calc.addN, calc.addM, calc.PI); //引入calc所有暴露的内容 并组成一个对象 对象别名为calc

console.log("统一暴露的统一接收", calc); //引入分别暴露的模块内容

console.log("分别暴露", mes.person, mes.time, mes.say, mes.address); //引入分别暴露的模块内容组成的一个对象

console.log("分别暴露的统一接受", mes);
/* 
  引入默认暴露
*/
//这里的暴露的是default对象，别名是say
// export {default as say} from './say'
//只暴露一个文件

console.log("默认暴露", _say["default"]); //验证默认暴露的是一个对象
// import * as o from './say'
// console.log(o, "o");